﻿using System;

namespace Netbits.Common.Conditions
{
	/// <summary>
	/// Exception for the condition-error
	/// </summary>
	[Serializable]
	public class ConditionException : Exception
	{
		#region Constructor

		/// <summary>
		/// Create new instance of class ConditionException
		/// </summary>
		public ConditionException()
			: base()
		{
		}

		/// <summary>
		/// Create new instance of class ConditionExcetion with specified message
		/// </summary>
		/// <param name="Message_">The specified message</param>
		/// <param name="Arguments_">The specified arguments for string.format</param>
		public ConditionException( string Message_, params object[] Arguments_ ) : base( string.Format( Message_, Arguments_ ) )
		{
		}

		#endregion
	}
}
